﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;


namespace Sysgeprava.Entities
{
    public partial class CONTROL:BaseEntity
    {
        public CONTROL()
        {
            this.HIST_CONTROL = new List<HIST_CONTROL>();
        }

        public int Id { get; set; }

        [Display(Name = "Descripcion")]
        [Required(ErrorMessage = "La Descripción es requerida")]
        public string Descripcion { get; set; }

        public virtual ICollection<HIST_CONTROL> HIST_CONTROL { get; set; }

        public override string ToString()
        {
            return Descripcion;
        }
    }
}
